#ifndef FORGETPASSWORD_H
#define FORGETPASSWORD_H

#include <QWidget>
#include <QtSql/QSqlDatabase>
#include <QSqlQuery>
#include <QDebug>
#include <QMessageBox>
#include <QPainter>


namespace Ui {
class ForgetPassword;
}

class ForgetPassword : public QWidget
{
    Q_OBJECT

public:
    explicit ForgetPassword(QWidget *parent = nullptr);
    ~ForgetPassword();
    //void paintEvent(QPaintEvent * event);
    void paintEvent();

private:
    Ui::ForgetPassword *ui;
     QSqlDatabase db;
     bool flag1=0;
     bool flag2=0;


signals:
    void back(void);
    void clearAll(void);

private slots:
    void on_findButton_clicked();
    bool IsEnglishOrNumber(QString qstrSrc);
};

#endif // FORGETPASSWORD_H
